/**
 * Created by user on 2017/8/13.
 */

// 关于localStorage方法总结

(function () {
    var Local = {
        set: function (name, value) {
            return localStorage.setItem(name, value);
        },
        get: function (name) {
            return localStorage.getItem(name);
        },
        remove: function (name) {
            return localStorage.removeItem(name);
        },
        clear: function () {
            return localStorage.clear()
        }
    };
    window.Local = Local;
})();